package com.weitu.worklicense.entity;

import java.io.Serializable;

/** 
 * 作业许可证-安全措施关联表 HSE_WL_LICENSEMEASURE
 * @author LiMeng
 * date 2017/06/02 15:56
 */
public class LicenseMeasure implements Serializable {
    //串行版本ID
    private static final long serialVersionUID = -6571525630281090237L;

    // 主键 使用uuid
    private String id;

    // 作业许可证表id
    private String licenseId;

    // 安全措施表id
    private String measureId;

    /** 
     * 获取 主键 使用uuid HSE_WL_LICENSEMEASURE.id
     * @return 主键 使用uuid
     */
    public String getId() {
        return id;
    }

    /** 
     * 设置 主键 使用uuid HSE_WL_LICENSEMEASURE.id
     * @param id 主键 使用uuid
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /** 
     * 获取 作业许可证表id HSE_WL_LICENSEMEASURE.licenseId
     * @return 作业许可证表id
     */
    public String getLicenseId() {
        return licenseId;
    }

    /** 
     * 设置 作业许可证表id HSE_WL_LICENSEMEASURE.licenseId
     * @param licenseId 作业许可证表id
     */
    public void setLicenseId(String licenseId) {
        this.licenseId = licenseId == null ? null : licenseId.trim();
    }

    /** 
     * 获取 安全措施表id HSE_WL_LICENSEMEASURE.measureId
     * @return 安全措施表id
     */
    public String getMeasureId() {
        return measureId;
    }

    /** 
     * 设置 安全措施表id HSE_WL_LICENSEMEASURE.measureId
     * @param measureId 安全措施表id
     */
    public void setMeasureId(String measureId) {
        this.measureId = measureId == null ? null : measureId.trim();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LicenseMeasure that = (LicenseMeasure) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (licenseId != null ? !licenseId.equals(that.licenseId) : that.licenseId != null) return false;
        return measureId != null ? measureId.equals(that.measureId) : that.measureId == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (licenseId != null ? licenseId.hashCode() : 0);
        result = 31 * result + (measureId != null ? measureId.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "LicenseMeasure{" +
                "id='" + id + '\'' +
                ", licenseId='" + licenseId + '\'' +
                ", measureId='" + measureId + '\'' +
                '}';
    }
}